package com.edooteach.tencent.entity.corpmessage;

import org.apache.commons.lang3.StringUtils;

/**
 * 
 * @author mohanlan
 *
 */
public class CorpMessageRequest {
    
    /**
     * 接收人
     */
    private String sendto;
    
    /**
     * 消息类型
     */
    private CorpMessageType type;
    
    /**
     * 消息内容
     */
    private CorpMessageContent content;
    
    /**
     * The default constructor
     */
    public CorpMessageRequest() {
    }
    
    public boolean isValid() {
      return StringUtils.isNotEmpty(sendto) && type != null && content != null;
    }

    /**
     * @return the sendto
     */
    public String getSendto() {
      return sendto;
    }

    /**
     * @return the type
     */
    public CorpMessageType getType() {
      return type;
    }

    /**
     * @return the content
     */
    public CorpMessageContent getContent() {
      return content;
    }

    /**
     * @param sendto the sendto to set
     */
    public void setSendto(String sendto) {
      this.sendto = sendto;
    }

    /**
     * @param type the type to set
     */
    public void setType(CorpMessageType type) {
      this.type = type;
    }

    /**
     * @param content the content to set
     */
    public void setContent(CorpMessageContent content) {
      this.content = content;
    }
}
